<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./jquery-3.7.1.min.js"></script>
</head>
<body>
    <input type="text" value="我是内容">

    <script>

        //val 设置和获取input输入框内容

       // $("input").val("我是动态设置的内容")

        var content=$("input").val(); //获取内容
        console.log(content);


        
        
    </script>
</body>
</html>